package com.pt5.pthouduan.service.impl;

import com.pt5.pthouduan.entity.Category;
import com.pt5.pthouduan.mapper.CategoryMapper;
import com.pt5.pthouduan.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImp implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> getAllCategories() {
        return categoryMapper.getAllCategories();
    }
}
